<!--
 * @Description: 
 * @Author: mxy
 * @Date: 2022-11-30 20:19:41
 * @LastEditors: mxy
 * @LastEditTime: 2022-11-30 20:30:34
-->
<template>
  <div>
    <h3>{{ item.pname }}</h3>
    <p>价格:{{ item.price }}</p>
    <p>{{ item.info }}</p>
    <button @click="$emit('jian', item.id, 1)">砍一刀</button>
  </div>
</template>

<script>
export default {
  props: ["item"],
};
</script>

<style>
div {
  border: 1px solid #000;
  margin: 5px;
  padding: 5px;
}
</style>
